import {layer} from "@layui/layui-vue"; // 引入qs模块，用来序列化post类型的数据，后面会提到
const common = {
    toast(msg = "请求成功！", icon = 1, title = '系统通知', offset = 'rb',) {
        layer.notifiy({
            title: title,
            area: "300px",
            offset: offset,
            content: msg,
            time: 3000,
            icon: icon,
        })
    },

}

export default common;
